package com.tianyu.service.mqtt.common;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**********************************
 * @Author YSW
 * @Description
 * @Date 2023/3/9 - 15:47
 **********************************/

@Slf4j
@Data
@Configuration
@ConfigurationProperties(prefix = "mqtt-third01")
public class Third01MqttClientOptions {

    private String[] urls;
    private String username;
    private String password;
    private String clientId;
    private Integer subQos;
    private Integer pubQos;
    private String[] inboundTopic;
    private OutboundTopicPrefix outboundTopicPrefix;

    @Data
    public static class OutboundTopicPrefix {
        private String command;
    }
}
